package com.tfy.liquor.service;

import com.sun.org.apache.xpath.internal.operations.Bool;
import com.tfy.liquor.bean.FreightRegion;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public interface FreightRegionService {
    /**
     * 获取全部省级地址信息
     * @return
     */
    ArrayList<FreightRegion> getProvinceFreightRegion();

    /**
     * 根据父级编号获取下级地址信息
     * @param pid
     * @return
     */
    ArrayList<FreightRegion> getFreightRegionByPid(int pid);

    /**
     * 添加行政区域信息
     * @param freightRegion
     * @return
     */
    Boolean addFreightRegion(FreightRegion freightRegion);
}
